<?php
/**
 * Created by PhpStorm.
 * User: august
 * Date: 2021/5/18
 * Time: 15:02
 */

namespace DesignPatterns\Creator\AbstractFactory;

/**
 * Mysql 工厂
 * Class MySQLFactory
 * @package DesignPatterns\Creator\AbstractFactory
 */
class MySQLFactory implements IFactory
{
    /**
     * 创建产品A 工厂方法
     * author: august 2021/5/18
     * @return MySqlUser
     */
    public function createUser()
    {
        return new MySqlUser();
    }

    /**
     * 创建产品B 的工厂方法
     * author: august 2021/5/18
     * @return MySQLAtricle|mixed
     */
    public function createArticle()
    {
        return new MySQLAtricle();
    }
}